﻿
//Author: 张亚涛
//createtime:2015-12-19 23:30:07
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class MemberPark
    {
        public MemberPark()
        { }
        public MemberPark(IDataReader reader)
        {
            _id = long.Parse(reader["ID"].ToString());
            if (reader["OpenID"] != DBNull.Value)
            {
                _OpenID = reader["OpenID"].ToString();
            }
            if (reader["CommuntyID"] != DBNull.Value)
            {
                _communtyID = int.Parse(reader["CommuntyID"].ToString());
            }
            if (reader["CommuntyName"] != DBNull.Value)
            {
                _CommuntyName = reader["CommuntyName"].ToString();
            }
            if (reader["ParkID"] != DBNull.Value)
            {
                _parkID = int.Parse(reader["ParkID"].ToString());
            }
            if (reader["ParkName"] != DBNull.Value)
            {
                _ParkName = reader["ParkName"].ToString();
            }
        }

        #region 数据库字段
        private long? _id;
        private string _OpenID;
        private int? _communtyID;
        private string _CommuntyName;
        private int? _parkID;
        private string _ParkName;
        #endregion

        #region 字段属性
        /// <summary>
        /// 
        /// </summary>
        public long? Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 微信ID
        /// </summary>
        public string OpenID
        {
            set { _OpenID = value; }
            get { return _OpenID; }
        }
        /// <summary>
        /// 小区ID
        /// </summary>
        public int? CommuntyID
        {
            set { _communtyID = value; }
            get { return _communtyID; }
        }
        /// <summary>
        /// 小区
        /// </summary>
        public string CommuntyName
        {
            set { _CommuntyName = value; }
            get { return _CommuntyName; }
        }
        /// <summary>
        /// 停车位ID
        /// </summary>
        public int? ParkID
        {
            set { _parkID = value; }
            get { return _parkID; }
        }
        /// <summary>
        /// 停车位
        /// </summary>
        public string ParkName
        {
            set { _ParkName = value; }
            get { return _ParkName; }
        }
        
        #endregion
    }
}